//
//  LGAccountBidingViewController.m
//  ligenyun
//
//  Created by Mac on 2018/4/10.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "LGAccountBidingViewController.h"

@interface LGAccountBidingViewController ()
@property(nonatomic, strong) NSArray                     *dataSouce;
@end

@implementation LGAccountBidingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"账号管理";
    [self configDataSouce];
    // Do any additional setup after loading the view.
}
- (void)configDataSouce{
    self.dataSouce = @[
                        [[STTableEasyModel alloc] initWithTextString:@"绑定手机号" imageName:@"绑定手机号" detailString:@"183****1887"],
                         [[STTableEasyModel alloc] initWithTextString:@"绑定微信号" imageName:@"绑定微信号" detailString:@"183****1887"],
                         [[STTableEasyModel alloc] initWithTextString:@"绑定QQ号" imageName:@"绑定QQ号" detailString:@"183****1887"],
                         [[STTableEasyModel alloc] initWithTextString:@"绑定微博号" imageName:@"绑定微博号" detailString:@"183****1887"]
                       ];
    [self.tableView reloadData];
}
#pragma --mark UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    
    return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return self.dataSouce.count;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return 44;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    
    return 24;
}
- (UIView*)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
    return [UIView new];
}
- (UIView*)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
    return [UIView new];
}
- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    static NSString * reuseIdentifier =  @"cell";
    UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:reuseIdentifier];
    if (!cell) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:reuseIdentifier];
        
    }
    STTableEasyModel * model = self.dataSouce[indexPath.row];
    [cell setSt_tableEasyModel:model];
    return cell;
}
#pragma --mark UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    [self.tableView deselectRowAtIndexPath:indexPath animated:NO];
}

@end
